package com.funi.consts;

import cn.hutool.core.date.DateUtil;
import com.funi.bo.UserBo;
import org.gitlab4j.api.GitLabApi;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

/**********************************************************************
 * &lt;p&gt;文件名：HttpConnectUtils.java &lt;/p&gt;
 * &lt;p&gt;文件描述：常量池
 * @project_name：code_total
 * @author zengshunyao
 * @create 2025/10/01 09:47
 * @history
 * @department：政务事业部
 * Copyright ChengDu Funi Cloud Code Technology Development CO.,LTD 2014
 *                    All Rights Reserved.
 */
public abstract class Constants {

    /**
     * git仓库地址
     */
    public static final String GITLAB_URL = "http://gitlab.funi.local";
    /**
     * 访问token 永久授权,只能查询项目、查询人员、查询代码提交记录,不能写数据到远程仓库
     */
    public static final String PERSONAL_ACCESS_TOKEN = "2aEEqqJMXNwAhfeyvEAb";
    /**
     * GitLab API端点（获取当前登录用户信息，无需额外参数）
     */
    public static final String GITLAB_API_ENDPOINT = GITLAB_URL + "/api/v4/user";
    /**
     * gitLabApi
     */
    public static final GitLabApi GitLabAPI = new GitLabApi(GITLAB_URL, PERSONAL_ACCESS_TOKEN);
    /**
     * 统计时间段
     * 开始时间-截止时间
     */
    public static final String START_TIME_STR = "2025-10-01 00:00:00";
    public static final String END_TIME_STR = "2025-11-01 00:00:00";
    public static final Date START_TIME = DateUtil.parse(START_TIME_STR, "yyyy-MM-dd HH:mm:ss");
    public static final Date END_TIME = DateUtil.parse(END_TIME_STR, "yyyy-MM-dd HH:mm:ss");
    /**
     * 成都研发部涉及多个分组，为了精准统计，所以不能用分组简单的去统计，而是从用户账号出发统计提交记录。
     */
    @Deprecated
    private static final List<String> GROUP_NAME_LIST = Arrays.asList("cdtradegroup");
    /**
     * 成都研发部员工(研发) 人员清单
     */
    public static List<UserBo> CD_GROUP_MEMBER_USERNAME_LIST = Arrays.asList(
            new UserBo("高攀", "gaopao", "1529132371@qq.com"),
            new UserBo("王鹏", "wangpeng", "15284935733@163.com"),
            new UserBo("李荣耀", "lirongyao", "782892064@qq.com"),
            new UserBo("刘毅", "liuyi", "576769162@qq.com"),
            new UserBo("刘云钊", "liuyunzhao", "yunzhao.liu@funi365.com"),
            new UserBo("蒋鸿斌", "jianghongbin", "hongbin.jiang@maesinfo.com"),
            new UserBo("李智", "lizhi", "286703477@qq.com"),
            new UserBo("张钰", "zhangyu", "1075253024@qq.com"),
            new UserBo("王伟", "wangwei", "wei.wang@funi365.com"),
            new UserBo("吴乐韬", "wuletao", "letao.wu@funi365.com"),
            new UserBo("郑礼珂", "zhenglike", "1308667582@qq.com"),
            new UserBo("魏波", "weibo", "bo.wei@funi365.com"),
            new UserBo("李通坡", "litongpo", "tongpo.li@funi.com"),
            new UserBo("占生聪", "zhanshengcong", "shengcong.zhan@funi.com"),
            new UserBo("宋靖", "songjing", "jing.song@funi.com")//,

            //new UserBo("左宗侑", "zuozongyou", "1106800812@qq.com"),
            //new UserBo("赵桂林", "zhaoguilin", "guilin.zhao@funi365.com")
            //new UserBo("曾舜尧", "zengshunyao", "shunyao.zeng@funi365.com")
    );

    public final static String OUTPUT_DIR="target/";
}
